<div class="container-fluid">

    <div class="row-fluid">
        <div id="sidebar" class="span2">
            <div class="full_sidebarbg span2 hidden-phone"></div>
            <div class="sidebar-nav">
                <div class="logo"><a href="<?php echo base_url(); ?>" target="_blank" title="Xem trang chủ"><img src="<?php echo base_url(); ?>template/theme1/images/logo.png" alt=""/></a></div>

                <div class="agent-info ">
                    <div class="agent-pic shadow"><img src="http://demo.luxsys-apps.com/freelancecockpit2/files/media/f27c447c1f6da9d72206e1865cdbfb72.png " /></div>
                    <div class="username">
                        <a href="#" class="user" data-toggle="modal"><?php echo $this->muser->user_name; ?></a> 
                        <br/><small>Admin</small>
                        <a href="#" id="openmenu" class="visible-phone visible-tablet pull-right" ></a>
                    </div>


                </div>

                <ul class="nav dark nav-list clear hidden-phone hidden-tablet" id="menu">

                    <li id="dashboard"><a href="<?php echo admin_url(); ?>"><i class="icon-white icon-th"></i> Dashboard                                                               </a> </li>
<?php
$resources = $this->permission->get_resData($this->muser->user_id);
foreach($resources as $resource){
?>
<li id="projects"><a href="<?php echo admin_url(); ?><?php echo $resource->RES_LINK;?>"><i class="icon-white <?php echo $resource->RES_ICON;?>"></i><?php echo $resource->RES_NAME;?></a> </li>				
<?php
}
?>
                </ul>
            </div>
        </div><!--/span-->
		
        <ul class="span10 breadcrumb">
            <li class="hidden-phone"><a href="<?php echo admin_url(); ?>"><i class="icon icon-home" style="opacity: 0.7;"></i></a> <span class="divider hidden-phone">></i></span></li>
			<!--
            <li><a href="">Projects</a><span class="divider hidden-phone">></i></span></li>
		-->
            <li class="pull-right"><a href="<?php echo $this->template->url_admin; ?>user/logout" class="btn btn-mini"><i class="icon-off"></i></a></li> 

        </ul>
		
        <div class="span10 white">

            <div id="main">